package yt.xgk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import yt.xgk.entity.Xgk2025;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-03-14
 */
@Mapper
public interface Xgk2025Mapper extends BaseMapper<Xgk2025> {

    @Select("select *\n" +
            "        from xgk2025\n" +
            "        limit #{current},30")
    public List<Xgk2025> selectByPage1(Integer current);

    public List<Xgk2025> selectAllData();

    public List<Map<String, Object>> xgk2025Like(String name);

    public List<Map<String, Object>> selectByRanking(String name);

    public List<Map<String, Object>> xgk2025LikeId(Integer likeId);

    public String updateData(
            String setValueName,//你要搜索的
            String setValue,
            String valueName,
            String value
    );

    public List<Map<String, Object>> selectLocation(String location);
}
